package com.server.questionbank.snframe.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.lsn.globaldb.redisutil.RedisUtilBean;
import com.server.questionbank.snframe.config.filter.AllowedOrigninsBean;
import com.server.questionbank.snframe.config.filter.LsnCorsFilter;

@Configuration
public class CustomBeanConfig {
    //Redis
    @Bean
    public RedisUtilBean genernateRedisUtilBean() {
        return new RedisUtilBean();
    }

    @Bean
    public AllowedOrigninsBean getAllowedOrigninsBean() {
        return new AllowedOrigninsBean();
    }
    @Bean
    public LsnCorsFilter getLsnCorsFilter() {
        return new LsnCorsFilter();
    }
}
